<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>支付成功</title>
</head>
<body>
<p>已生成订单,将跳转订单页面</p>
<script type="text/javascript" src="js/jquery-1.12.4.js"></script>
<script type="text/javascript" src="register_js/jquery.js"></script>
<script type="text/javascript" src="js/axios.js"></script>
<script type="text/javascript">
    var da = 0;
    $(document).ready(function () {
        axios.get(" http://ivr3ur.natappfree.cc/updOrderzfb", {})
            .then(function (response) {
                console.log(response)
                da = response.data;
            })
        setTimeout('tz()', 1000);
    })

    function tz() {
        if (da != 0) {
            setTimeout(function (args) {
                window.location.href = 'http://ivr3ur.natappfree.cc/getOrder.html';
            }, 2000);
        } else {
            alert("支付失败")
            setTimeout(function (args) {
                window.locationhref = '';
            }, 2000);
        }
    }
</script>
</body>
</html>